<?php include view('header');?>

<h1>项目高级搜索</h1>
<div class="headactions">
	<input type="checkbox" id="check_all" name="check_all" />全选
	<input type="checkbox" id="reverse_all" name="reverse_all" />反选
</div>

<form action="project.php?action=search" method="post">
<table>
	<tr>
		<th><label><input type="checkbox" id="check_code" name="check_code" />项目代码：</label></th>
		<td><input type="text" id="project_code" name="project_code" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_name" name="check_name" />项目名称：</label></th>
		<td><input type="text" id="project_name" name="project_name" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_type" name="check_type" />项目类型：</label></th>
		<td><?php echo Tpl::select('project_type', Project::$type);?></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_responsor" name="check_responsor" />项目负责人：</label></th>
		<td><input type="text" id="project_responsor" name="project_responsor" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_responsormobile" name="check_responsormobile" />项目负责人电话：</label></th>
		<td><input type="text" id="project_responsormobile" name="project_responsormobile" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_source" name="check_source" />捐赠单位：</label></th>
		<td><input type="text" id="project_source" name="project_source" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_sourceaccount" name="check_sourceaccount" />对方户名：</label></th>
		<td><input type="text" id="project_sourceaccount" name="project_sourceaccount" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_amount" name="check_amount" />捐赠数额：</label></th>
		<td>
			从<input type="text" id="project_amount_from" name="project_amount_from" />
			到<input type="text" id="project_amount_to" name="project_amount_to" />
		</td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_restamount" name="check_restamount" />剩余金额：</label></th>
		<td>
			从<input type="text" id="project_restamount_from" name="project_restamount_from" />
			到<input type="text" id="project_restamount_to" name="project_restamount_to" />
		</td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_specifieduses" name="check_specifieduses" />指定用途：</label></th>
		<td><input type="text" id="project_specifieduses" name="project_specifieduses" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_status" name="check_status" />项目状态：</label></th>
		<td><input type="text" id="project_status" name="project_status" /></td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_dateline" name="check_dateline" />添加项目时间：</label></th>
		<td>
			从<input type="text" id="project_dateline_from" name="project_dateline_from" class="easyui-datebox" />
			到<input type="text" id="project_dateline_to" name="project_dateline_to" class="easyui-datebox" />
		</td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_creditedtime" name="check_creditedtime" checked="checked" />到账日期：</label></th>
		<td>
			从<input type="text" id="project_creditedtime_from" name="project_creditedtime_from" class="easyui-datebox" />
			到<input type="text" id="project_creditedtime_to" name="project_creditedtime_to" class="easyui-datebox" /><br />
            快速选择：
            <input type="radio" name="project_season" onclick="setProjectCreditedTime(1)" /><span class="checkbox">一季度</span>
            <input type="radio" name="project_season" onclick="setProjectCreditedTime(2)" /><span class="checkbox">二季度</span>
            <input type="radio" name="project_season" onclick="setProjectCreditedTime(3)" /><span class="checkbox">三季度</span>
            <input type="radio" name="project_season" onclick="setProjectCreditedTime(4)" /><span class="checkbox">四季度</span>
		</td>
	</tr>
	<tr>
		<th><label><input type="checkbox" id="check_deadline" name="check_deadline" />项目截止日期：</label></th>
		<td>
			从<input type="text" id="project_deadline_from" name="project_deadline_from" class="easyui-datebox" />
			到<input type="text" id="project_deadline_to" name="project_deadline_to" class="easyui-datebox" />
		</td>
	</tr>
</table>
	<button type="submit">开始搜索</button>
</form>

<script src="./js/project_search.js" type="text/javascript"></script>

<?php include view('footer');?>